<template>
  <div class="app-container home">
    <div class="bg_fff p_10 listbody">
      <el-tabs
        v-model="activeName"
        class="comm_tab"
        @tab-click="handleClick"
      >
        <el-tab-pane label="全部" name="first">
          <active-list :type='1' />
        </el-tab-pane>
        <el-tab-pane label="未发布" name="second">
          <active-list :type='2' />
        </el-tab-pane>
        <el-tab-pane label="未开始" name="third">
          <active-list :type='3' />
        </el-tab-pane>
        <el-tab-pane label="进行中" name="fourth">
          <active-list :type='4' />
        </el-tab-pane>
        <el-tab-pane label="已结束" name="fiveth">
          <active-list :type='5' />
        </el-tab-pane>
      </el-tabs>
    </div>
  </div>
</template>

<script>
import ActiveList from "./ActiveList.vue";
export default {
  data() {
    return {
      activeName: "first",
    };
  },
  components: {
    ActiveList,
  },
  methods:{
    handleClick(){

    }
  }
};
</script>

<style lang="scss" scoped>
.listbody {
  width: 100%;
  min-height: calc(100vh - 135px);
  border-radius: 6px;
}
</style>